stretch (one's) legs

Translations
размять ноги
After sitting for hours, I needed to stretch my legs.
После нескольких часов сидения мне нужно было размять ноги.
Definitions
To take a short walk or engage in light physical activity, typically after sitting for a long period, in order to relieve stiffness and improve circulation.